#include <iostream>
using std::cout; using std::cin; using std::endl;
int main()
{   for (unsigned g; cin >> g;)
    {
        auto result = g > 90 ? "high pass" : g < 60 ? "fail" :
                                    g < 75 ? "low pass" : "pass";
        cout << result << endl;
    }
    return 0;
}
